﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using yncTech.BusinessObjects;
using System.Data;

public partial class Sample_test : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        FinReceipt frp = new FinReceipt();
        if (frp.LoadByPrimaryKey(85464))
        {
            Response.Write(frp.UserName);
        }
        if (frp.LoadByPrimaryKey(85464)) {
            frp.UserName = "杨旭";
            frp.Save();
        }

    }
    protected void NameChanged(object sender, EventArgs e)
    {
        FinReceipt frp = new FinReceipt();
        if (frp.LoadByPrimaryKey(85464))
        {
            txtCompany.Text = frp.UserName;

        }

    }
    protected void changeName(object sender, EventArgs e) {
        FinReceipt frp = new FinReceipt();
        if (frp.LoadByPrimaryKey(85464))
        {
            frp.UserName = txtCompany.Text;
            frp.Save();

        }
        frp.UserName = txtCompany.Text;
        frp.UploadUserName = "随便什么数据";
        frp.Save();
    }
}